package cn.zwx.goods.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;


/**
 * @author zhangwenxue
 */
@Data
public class ModifyBrandDTO {


    @NotNull(message = "品牌ID不能为空")
    @RequestParam(value = "0", description = "品牌ID", required = true)
    private Integer brandId;

    /**
     * 品牌名称
     */
    @Length(max = 32,message = "品牌名称不能超过32位")
    @RequestParam(value = "品牌名称",description = "品牌名称")
    private String name;

    /**
     * 品牌图片地址
     */
    @Length(max = 256,message = "品牌图片地址不能超过256位")
    @RequestParam(value = "品牌图片地址",description = "品牌图片地址")
    private String image;

    /**
     * 排序
     */
    @RequestParam(value = "排序",description = "排序")
    private Integer sort;

    /**
     * 类目id
     */
    @RequestParam(value = "类目id",description = "类目id")
    private Integer categoryId;
}
